
for i in range(1,1000):
    ge = i%10
    shi = i//10%10
    bai = i//100
    if pow(ge,3)+pow(shi,3)+pow(bai,3)==i:
        print(i,"是水仙花数")